text/template/parse.item.typ (field)

36 uses

	text/template/parse (current package)
		lex.go#L16: 	typ  itemType // The type of this item.
		lex.go#L24: 	case i.typ == itemEOF:
		lex.go#L26: 	case i.typ == itemError:
		lex.go#L28: 	case i.typ > itemKeyword:
		parse.go#L126: 		if token.typ != itemSpace {
		parse.go#L187: 	if token.typ != expected {
		parse.go#L196: 	if token.typ != expected1 && token.typ != expected2 {
		parse.go#L204: 	if token.typ == itemError {
		parse.go#L314: 	for t.peek().typ != itemEOF {
		parse.go#L315: 		if t.peek().typ == itemLeftDelim {
		parse.go#L317: 			if t.nextNonSpace().typ == itemDefine {
		parse.go#L365: 	for t.peekNonSpace().typ != itemEOF {
		parse.go#L381: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L408: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L440: 	if token := t.nextNonSpace(); token.typ != itemRightDelim {
		parse.go#L455: 	if token := t.nextNonSpace(); token.typ != itemRightDelim {
		parse.go#L472: 	if v := t.peekNonSpace(); v.typ == itemVariable {
		parse.go#L481: 		case next.typ == itemAssign, next.typ == itemDeclare:
		parse.go#L482: 			pipe.IsAssign = next.typ == itemAssign
		parse.go#L486: 		case next.typ == itemChar && next.val == ",":
		parse.go#L491: 				switch t.peekNonSpace().typ {
		parse.go#L500: 		case tokenAfterVariable.typ == itemSpace:
		parse.go#L507: 		switch token := t.nextNonSpace(); token.typ {
		parse.go#L561: 		if context == "if" && t.peek().typ == itemIf {
		parse.go#L565: 		} else if context == "with" && t.peek().typ == itemWith {
		parse.go#L629: 	if peek.typ == itemIf || peek.typ == itemWith {
		parse.go#L677: 	if t.nextNonSpace().typ != itemRightDelim {
		parse.go#L686: 	switch token.typ {
		parse.go#L713: 		switch token := t.next(); token.typ {
		parse.go#L743: 	if t.peek().typ == itemField {
		parse.go#L745: 		for t.peek().typ == itemField {
		parse.go#L779: 	switch token := t.nextNonSpace(); token.typ {
		parse.go#L797: 		number, err := t.newNumber(token.pos, token.val, token.typ)